import Layout from '@/layout'

export default {
  path: '/user',
  name: 'user',
  component: Layout,
  redirect: '/user/list',
  hidden: false,
  alwaysShow: true,
  order: 1,
  meta: { title: '用户管理', icon: 'el-icon-user' },
  children: [
    {
      path: 'list',
      name: 'list',
      component: () => import('@/views/user/manage'),
      meta: { title: '用户列表' },
    },
    {
      path: 'feedback',
      name: 'feedback',
      component: () => import('@/views/user/feedback'),
      meta: { title: '用户反馈' },
    },
    {
      path: 'user_pay',
      name: 'user_pay',
      component: () => import('@/views/user/userPayment'),
      meta: { title: '用户付费率' },
    },
    {
      path: 'arppu',
      name: 'arppu',
      component: () => import('@/views/user/arppu'),
      meta: { title: 'ARPPU' },
    },
    {
      path: 'user_region',
      name: 'user_region',
      component: () => import('@/views/user/userRegion'),
      meta: { title: '用户地区分布' },
    },
    {
      path: 'crowd_rule',
      name: 'crowd_rule',
      component: () => import('@/views/user/userGroup'),
      meta: { title: '用户分群' },
    },
    {
      path: 'crowd_user',
      name: 'crowd_user',
      hidden: true,
      component: () => import('@/views/user/crowdUser'),
      meta: { title: '人群用户列表', activeMenu: '/user/crowd_rule' },
    },
    {
      path: 'crowd_push',
      name: 'crowd_push',
      component: () => import('@/views/user/crowdPush'),
      meta: { title: '消息推送' },
    },
  ],
}
